UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

Unused database components, PostgreSQL software, and database objects must be removed.


Overview

Finding ID Version Rule ID IA Controls Severity
V-233592 CD12-00-008900 SV-233592r960963_rule Medium
Description
Information systems are capable of providing a wide variety of functions and services. Some of the functions and services, provided by default, may not be necessary to support essential organizational operations (e.g., key missions, functions). It is detrimental for software products to provide, or install by default, functionality exceeding requirements or mission objectives. PostgreSQL must adhere to the principles of least functionality by providing only essential capabilities.
STIG Date
Crunchy Data PostgreSQL Security Technical Implementation Guide 2024-06-12

Details

Check Text ( C-36786r606999_chk )
To get a list of all extensions installed, use the following commands:

$ sudo su - postgres
$ psql -c "select * from pg_extension where extname != 'plpgsql'"

If any extensions exist that are not approved, this is a finding.
Fix Text (F-36751r607000_fix)
To remove extensions, use the following commands:

$ sudo su - postgres
$ psql -c "DROP EXTENSION "

Note: It is recommended that plpgsql not be removed.